package com.baosight.risk.service.rire.entity;

import com.baosight.risk.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

import lombok.Data;

/**
 * Table: T_RIRE_RISK_TARGET_RC
 * 重点风险指标（日常预警）
 */
@Data
@ApiModel
@Table(name = "T_RIRE_RISK_TARGET_RC")
public class RireRiskTargetRc extends BaseEntity {

    /**
     * 预警模型
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    WARNING_MODEL_GUID
     * Nullable:  true
     */
    @ApiModelProperty("预警模型")
    @Column(name = "WARNING_MODEL_GUID")
    private String warningModelGuid;

    /**
     * 重点风险ID
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    IMPORT_GUID
     * Nullable:  true
     */
    @ApiModelProperty("重点风险ID")
    @Column(name = "IMPORT_GUID")
    private String importGuid;

    /**
     * 风险点ID
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    RISK_ID
     * Nullable:  false
     */
    @ApiModelProperty("风险点ID")
    @Column(name = "RISK_ID")
    private String riskId;

    /**
     * 指标编号
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    TARGET_NO
     * Nullable:  true
     */
    @ApiModelProperty("指标编号")
    @Column(name = "TARGET_NO")
    private String targetNo;

    /**
     * 指标名称
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    TARGET_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标名称")
    @Column(name = "TARGET_NAME")
    private String targetName;

    /**
     * 指标说明
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    TARGET_DESC
     * Nullable:  true
     */
    @ApiModelProperty("指标说明")
    @Column(name = "TARGET_DESC")
    private String targetDesc;

    /**
     * 指标周期（year-年；month月份
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    TARGET_PERIOD
     * Nullable:  true
     */
    @ApiModelProperty("指标周期（year-年；month月份")
    @Column(name = "TARGET_PERIOD")
    private String targetPeriod;

    /**
     * 指标周期说明
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    TARGET_PERIOD_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标周期说明")
    @Column(name = "TARGET_PERIOD_NAME")
    private String targetPeriodName;

    /**
     * 指标类型
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    TARGET_TYPE
     * Nullable:  true
     */
    @ApiModelProperty("指标类型")
    @Column(name = "TARGET_TYPE")
    private String targetType;

    /**
     * 指标类型说明
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    TARGET_TYPE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标类型说明")
    @Column(name = "TARGET_TYPE_NAME")
    private String targetTypeName;

    /**
     * 指标分类（先行指标、关键指标）
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    TARGET_CLASS
     * Nullable:  true
     */
    @ApiModelProperty("指标分类（先行指标、关键指标）")
    @Column(name = "TARGET_CLASS")
    private String targetClass;

    /**
     * 指标类型说明
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    TARGET_CLASS_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标类型说明")
    @Column(name = "TARGET_CLASS_NAME")
    private String targetClassName;

    /**
     * 计量单位
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    UNIT
     * Nullable:  true
     */
    @ApiModelProperty("计量单位")
    @Column(name = "UNIT")
    private String unit;

    /**
     * 指标标准值
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    STANDARD_VALUE
     * Nullable:  true
     */
    @ApiModelProperty("指标标准值")
    @Column(name = "STANDARD_VALUE")
    private String standardValue;

    /**
     * 参考值（系统生成）
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    REFENCE_VALUE
     * Nullable:  true
     */
    @ApiModelProperty("参考值（系统生成）")
    @Column(name = "REFENCE_VALUE")
    private String refenceValue;

    /**
     * 指标值
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    TARGET_VALUE
     * Nullable:  true
     */
    @ApiModelProperty("指标值")
    @Column(name = "TARGET_VALUE")
    private String targetValue;

    /**
     * 修改标识（1-是0-否）
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    UPDATE_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("修改标识（1-是0-否）")
    @Column(name = "UPDATE_FLAG")
    private String updateFlag;

    /**
     * 期间号
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    PERIOD_NO
     * Nullable:  true
     */
    @ApiModelProperty("期间号")
    @Column(name = "PERIOD_NO")
    private String periodNo;

    /**
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    ACCT_YEAR
     * Nullable:  true
     */
    @ApiModelProperty("年")
    @Column(name = "ACCT_YEAR")
    private String acctYear;

    /**
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    ACCT_PERIOD
     * Nullable:  true
     */
    @ApiModelProperty("月")
    @Column(name = "ACCT_PERIOD")
    private String acctPeriod;

    /**
     * 排序
     * <p>
     * Table:     T_RIRE_RISK_TARGET_RC
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @ApiModelProperty("排序")
    @Column(name = "ROW_ORDER")
//    private String rowOrder;
    private  Integer rowOrder;
}